<?php
include("database.php");
$con = mysqli_connect($hostname,$username,$password,$dbname);
if (mysqli_connect_errno())
  {echo "Failed to connect to MySQL: " . mysqli_connect_error();}
$idcheck = base64_decode($_GET['id']);
$deleteit = mysqli_query($con,"DELETE FROM DonateList WHERE ID='$idcheck'") or die (mysql_error());
header("Location: ../viewall-admin-offer-donate-listing.php");
?>